<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\LinkPager;
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>投资项目</title>
    <!--<meta name="description" content="这是主页">-->
    <meta name="keywords" content="form">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="stylesheet" href="css/chinaz.css">
    <link rel="stylesheet" href="css/amazeui.swiper.min.css">


    <link rel="stylesheet" href="css/index.css">
    <!--<link rel="stylesheet" href="css/amazeui.slick.min.css">
    -->
    <!--<link rel="icon" type="image/png" href="assets/i/favicon.png">
    -->
    <!--<link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    -->
    <!--<meta name="apple-mobile-web-app-title" content="Amaze UI" />
    -->
    <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="assets/css/layout.css"/>
    <script src="assets/js/jquery.min.js"></script>

    <!--<link rel="stylesheet" href="assets/css/admin.css">--></head>
<body>

            <div style="width: 100%;padding-left: 4%;padding-top: 4px;padding-right: 4%">

                <!--概括component-->
                <div style="width: 100%;height: 40px;background-color: #99d3ef;">
                    <div style="float: left;background-color: #55B6E4;width: 2%;height: 40px"></div>
                    <div style="float: left;padding-top: 4px;margin-left: 10px">
                        <span style="font-size: 20px">投资的项目</span>

                    </div>
                </div>
                <!--over-->

                <!--内容component-->
                <table style="width: 100%;border-collapse: collapse;" class="projectTable">
                    <tr style="background-color: rgb(235,240,244)">
                        <td style="width: 20%">项目名称</td>
                        <td style="width: 15%">区域</td>
                        <td style="width: 15%">行业</td>
                        <td style="width: 15%">筹资总额</td>
                        <td style="width: 15%">是否推荐</td>
                        <td style="width: 15%">是否领头</td>
                    </tr>

                <?php foreach ($raised as $raisedone): ?>
                    <tr style="background-color: white">
                        <td style=""><a href="http://localhost/chuangwu/web/index.php?r=raised/show-detail&raised_id=<?= Html::encode($raisedone->raised_id)?>"><?= Html::encode($raisedone->title)?></a></td>
                        <td style=""><?= Html::encode($raisedone->area)?></td>
                        <td style=""><?= Html::encode($raisedone->field)?></td>
                        <td style=""><?= Html::encode($raisedone->totalMoney)?></td>
                        <td style="" class="red"><?= $user_id==$raisedone->referrer_id?Html::encode("是"):Html::encode("否") ?></td>
                        <td style="" class="blue"><?= $user_id==$raisedone->leader_id?Html::encode("是"):Html::encode("否") ?></td>
                    </tr>
                <?php endforeach; ?>
                </table>

                <?= LinkPager::widget(['pagination' => $pages]); ?>


            </div>

<div style="width: 100%;clear:both"></div>

</body>
<style type="text/css">
    #investPro {background-color: #5790AC}
</style>
<script>
    var like = document.getElementById("investPro");
    like.innerHTML += "<img src='img/san.png' style='height: 40px;margin-top: -6px;float: right'> ";
</script>
